package com.gt.entity.security;

import lombok.Data;

import java.io.Serializable;

/**
 * 权限
 */
public class Role implements Serializable {
    private static final long serialVersionUID = 5812869048178832796L;

    private Integer roleId;     //权限id
    private String roleName;    //角色身份
    private String auth;        //角色权限

    public Role() {
    }

    public Role(Integer roleId, String roleName, String auth) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.auth = auth;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth;
    }

    @Override
    public String toString() {
        return "Role{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", auth='" + auth + '\'' +
                '}';
    }
}
